package framework.rpc.protocol.http.dispatcher;

import framework.rpc.protocol.http.handler.HttpServerHandler;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author ldanniel
 */
public class DispatcherServlet extends HttpServlet {
    //处理tomcat接收到的请求
    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp)  {
        //读取配置(过滤器逻辑)
        //，将请求处理交给HttpServerHandler
        new HttpServerHandler().handler(req, resp);
    }
}
